<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>比较三数大小</title>
	<script type="text/javascript">
		var num1=Number(prompt('请输入第一个数：'));
		var num2=Number(prompt('请输入第二个数：'));
		var num3=Number(prompt('请输入第三个数：'));
		var max;
		if (num1>=num2&&num1>=num3) {
			max=num1;
			console.log(max);
		}
		else if (num2>=num3) {
			max=num2;
			console.log(max);
		}
		else{
			max=num3;
			console.log(max);
		}
	</script>
</head>
<body>
	
</body>
</html>